package com.elepant.dp.cor;

public class ServletMain {

    /**
     * 责任链
     * @param args
     */
    public static void main(String[] args){
        String heard = "hello,<Elephant>欢迎访问 baidu.com";

        Request request = new Request();
        request.hearder = heard;

        Response response = new Response();


        FilterChain filterChain = new FilterChain();
        filterChain.addFilter(new HtmlFilter());
        filterChain.addFilter(new UrlFilter());

        filterChain.doFilter(request,response);


    }
}
